package main.java.trans;

import main.java.Employee;

public class ChangeNameTransaction extends ChangeEmployeeTransaction {

    private String newName;
    public ChangeNameTransaction(int empId, String newName) {
        super(empId);
        this.newName = newName;
    }
@Override
protected void doChange(Employee e) {
    e.setName(newName);
}
}
